#pragma once

#include "clientApdu.hpp"

class GetRequestNormalApdu : public ClientApdu {
public:
    GetRequestNormalApdu(const ByteStream &oad) {
        if (oad.size() != OadSize) {
            std::cerr << "bad oad, please check!!!" << std::endl;
            return;
        }

        _stream << static_cast<uint8_t>(ClientApduType::GET_REQUEST)  // 读请求
                << 0x01                                               // 读一个对象
                << 0x01                                               // piid, 优先级
                << oad                                                // 数据标识
                << 0x00;                                              // 无时间标签
    };
};
